<?php

use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;
use Illuminate\Support\Facades\DB;
class InsertDataToAdPosition extends Migration
{
    /**
     * Run the migrations.
     *
     * @return void
     */
    public function up()
    {
        $data = [
            [
                "name"=>"手机端首页banner",
                "desc"=>"手机端首页banner"
            ],[
                "name"=>"手机端特惠详情页banner",
                "desc"=>"手机端特惠banner"
            ],[
                "name"=>"手机端首页专题广告图",
                "desc"=>"手机端首页专题广告图"
            ],[
                "name"=>"手机端首页特惠广告图",
                "desc"=>"手机端首页特惠广告图"
            ],
            [
                "name"=>"手机端首页弹窗广告",
                "desc"=>"手机端首页弹窗广告"
            ],
            [
                "name"=>"手机端积分商城顶部广告",
                "desc"=>"手机端积分商城顶部广告"
            ],
        ];
        Db::table("ad_position")->insert($data);
    }

    /**
     * Reverse the migrations.
     *
     * @return void
     */
    public function down()
    {
        DB::table('ad_position')->truncate();
    }
}
